package com.ledijiaoyu.autogate.packet.request;

import com.ledijiaoyu.autogate.base.AutoGateCommand;
import com.ledijiaoyu.autogate.base.AutoGatePacket;

/**
 * Create with Android Studio
 * Author: chengpengfei
 * Date: 2018/5/22
 * Time: 5:59 PM
 * Description:软件开锁
 */
public class SoftOpenGatePacket  extends AutoGatePacket{

    // A-H 表示 8 组继电器，一般仅用 A（1） 与 B（2） 两组继电器
    private String mRelayA = "005";
    private String mRelayB = "005";
    private String mRelayC = "000";
    private String mRelayD = "000";
    private String mRelayE = "000";
    private String mRelayF = "000";
    private String mRelayG = "000";
    private String mRelayH = "000";

    public SoftOpenGatePacket() {

        // TODO 继电器状态
        // 默认1号继电器与2号继电器时间为5秒
        String params = mRelayA + mRelayB + mRelayC + mRelayD + mRelayE + mRelayF + mRelayG + mRelayH;
        argus.add(params);
        setCommand(AutoGateCommand.SOFT_OPEN_COMMAND);
        compressPacket();
    }
}
